package com.example.litehdfs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.litehdfs.model.db.Admin;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author mading
 * @since 2023-11-08
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

	/**
	 * 根据用户名或者手机号码查询管理员
	 * @param username
	 * @return
	 */
	Admin getAdmin(@Param("username") String username);
	
	Admin getAdminById(@Param("id") Long id);
}
